import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { Base } from '../base.entity';

@Entity()
export class TypeDevices extends Base {

    //类型名称
    @Column({ length: 30, comment: '类型名称' })
    type_devices_name: string;

    //模块类别
    @Column({ length: 30, comment: '设备模块' })
    type_devices_module: string;

    //父集ID
    @Column({ default: 0, comment: '父集ID' })
    parent_id: number;

    //排序
    @Column({ comment: '排序', default: 100 })
    type_devices_sort: number;

    //描述
    @Column({ length: 300, comment: '描述' })
    type_devices_describe: string;


}